How to get the number of items in a qcombobox? [closed] - c++

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
How can I check the number of items in combobox in the Qt library?

For the QComboBox widget (or the ComboBox QML element for that matter), it's the count property.
As an aside, for future reference, this sort of stuff is relatively easy to find out if you just plug qt qcombobox into your favourite search engine and look for the first hit starting with https://doc.qt.io/.

Related

How to add a custom button in mac catalyst optimised for mac using swiftUI? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 days ago.
Improve this question
When I try to change it to optimised for mac, I see all buttons change to default style (I mean macOS style). I just want to change the button style. Pls help!

Phone contact list with Qt [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I just started learning Qt and would like to try creating phone contact list. Through I couldn't find from where to start. I would be glad for any suggestions.
For a phone contact list I suggest looking at QListWidget. It has functions to insert/remove items and you can get signals when items are altered or when a new item is clicked.

How to get the second active window in z order? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I am trying to create an MFC application(hidden application) for tracking usage of other applications.
I am using GetForgroundWindow() for getting the current active window but sometimes I get my own hidden application window.
How I can get the current active windows in z-order
Call GetWindow passing GW_HWNDNEXT.

how to set a custom color for a specific word like IDE [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i wanna create a text field and when a user type a word it will check and if it equals to "test" for example, test's color will changes to red and so on
im using c++builder, so how can it be done?
You can use a TRichEdit for that. You can use its SelStart and SelLength properties to select the word and then use its SelAttributes->Color property to change the word's font color (or use the Win32 API equivalents). Refer to the following article for some details about how to implement a "syntax highlighter" with TRichEdit:
Faster rich edit syntax highlighting

C++ - Move application out of screen [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
So I want to create a c++ application that would come out from out of the screen when a button (that is visible on screen) is clicked and then the opposite.
How can I achieve this?
edit: i'm planning to do this on windows (winapi)
You should be able to use ::MoveWindow (or ::SetWindowPos) to change the position of the main window on a timer (WM_TIMER) callback.