Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • Problem connecting Signals and Slots in a modal dialog

    Solved
    18
    0 Votes
    18 Posts
    2k Views
    J.HilkJ
    @eschmo said in Problem connecting Signals and Slots in a modal dialog: I've removed it completely and everything is fine now! I'm afraid that credit goes to @mrjj ;) Sorry, not sure why this was in the files i've uploaded but this was allready changed yesterday. I'm talking header, not cpp [image: 6a5cfb98-2e73-4132-986f-84fdf14301f6.png]
  • 0 Votes
    32 Posts
    7k Views
    VRoninV
    @ailika said in How to use QTableWidget::setCellWidget() to set a widget such as a QComboBox and do the further handling?: the object is generated in the function which means that it will delete when the function end, am I right? Nope, it's allocated on the heap so it will live untill someone calls delete on it If it is this way, there will not be too much consumption by creating combox. No, this is the method chosen by the Qt architects to save on resources If I use openPersistentEditor, the combox will always preserve, I presume? Yes but you will have the same performance issues you would have with setIndexWidget
  • Connecting menu actions

    9
    0 Votes
    9 Posts
    34k Views
    mrjjM
    @Alok-Sinha Are you clicking it right ? [image: F3K1NI.png]
  • how to use signals and slots for qstring in qt

    Unsolved
    4
    0 Votes
    4 Posts
    302 Views
    Thank YouT
    @Meera-Hadid You can do something like emitting signals on your own see more: https://doc.qt.io/qt-5/signalsandslots.html Create a slot , as you said update() What causes the button text to change emit signal there , and it will execute things in slot As others have said , a basic example is required for what you want
  • How to change QComboBox color without change the apparence

    Unsolved
    5
    0 Votes
    5 Posts
    726 Views
    L
    Thanks for your answers. So the best way to custom a combobox color is to edit StyleSheet Properties and manually make the combobox looks like Windows 10 apparence with a different color ?
  • QIcon setting and icon then getting name of existing set icon

    Solved
    4
    0 Votes
    4 Posts
    340 Views
    Thank YouT
    @SPlatten If others didn't work then try using QMap QMap<QString,QString> icons; // first one for text or item no and second for path icons.insert("first selection", ":/ICN_CONNTD"); icons.insert("second selection", ":/SECOND"); // and on selection change you can simply get the icon using selectionChanged(QString text){ QString iconName = icons.value(text); // Here you can access the icon name } I don't think as good answer but it can get work done. LOL Thanks
  • clangbackend.exe has stopped working – Win 7 64 bit

    Unsolved
    6
    0 Votes
    6 Posts
    584 Views
    Thank YouT
    @stretchthebits Which version of QT are you using ? Did you update or install the offline version of QT?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • How to add qt virtual keyboard c++ based qt project 5.5.1 ?

    Unsolved
    6
    0 Votes
    6 Posts
    667 Views
    eyllanescE
    @Qt-embedded-developer Here the answers can take minutes, days, months or never but that does not imply that you abuse the system. You must be patient, show your research, make your post attractive. If you check you will see that the posts that show information are more likely to get a response. This post does not provide any but the other post has done so obtaining more feedback. I hope that some moderator takes action on the matter.
  • qt label alignment center

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    I
    @Qt-embedded-developer [image: 2e756263-5c4b-425a-980f-636c9f8ccca2.png] this->ui.horizontalLayout->setStretch(0, 10); this->ui.horizontalLayout->setStretch(1, 300); this->ui.horizontalLayout->setStretch(2, 10); I changed it to a horizontal layout, but the middle is not aligned. The qt alignment is also centered.
  • 0 Votes
    27 Posts
    2k Views
    L
    @SGaist I tried to use COPY_FILE_NO_BUFFERING, but I had the same problem.
  • what's the problem of scroll widget that it caused frame drop?

    Locked Unsolved
    2
    0 Votes
    2 Posts
    179 Views
    J.HilkJ
    @arthurzhu do not post the same question in multiple parts of the forum. Locked as duplicate of https://forum.qt.io/topic/129620/what-s-the-problem-of-scroll-widget-that-it-caused-frame-drop
  • How to capture combination key with [Window] Key?

    Solved qml shortcut
    5
    0 Votes
    5 Posts
    963 Views
    M
    @ChrisW67 Ok I understood... Thank you.
  • 0 Votes
    2 Posts
    299 Views
    eyllanescE
    @Qt-embedded-developer Have you tried compiling? Have you had problems doing it?
  • Qt Snap7 Using Problem

    Solved
    22
    0 Votes
    22 Posts
    3k Views
    F
    So what was the final solution@V0rtex Is it just a compiler switch?
  • QT chart PlotArea

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    eyllanescE
    @IknowQT Sometimes it happens that for efficiency reasons Qt does not update some properties and it does so when the widgets are just displayed. And it seems that this is the case.
  • For each QT-Creator one signal emitted

    Solved qt-creator signal & slot
    5
    0 Votes
    5 Posts
    911 Views
    F
    @SGaist I was too sure I guess... :-) Thanks!
  • Ftp .

    Unsolved
    2
    0 Votes
    2 Posts
    180 Views
    SGaistS
    Hi, What is the stack trace of your crash ? Nothing stands out as really wrong from the example you linked except the understanding of the lifetime requirements for the QFile.
  • Compiler ignoring std option for C files (only works on c++ files)

    Solved
    6
    0 Votes
    6 Posts
    706 Views
    ocgltdO
    @ChrisW67 I got it working with QMAKE_CFLAG setting to c11 Not sure what I compiles fine in some distro without this, but at least this is the solution for others
  • QCandlestickSeries element access

    Unsolved qcandlestick qchart
    2
    0 Votes
    2 Posts
    528 Views
    eyllanescE
    @TheLumbee https://doc.qt.io/qt-5/qcandlestickseries.html#sets ?