Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Error "UNINITIALIZED READ" in Dr. Memory report

    2
    0 Votes
    2 Posts
    2k Views
    SGaistS
    Hi, I'd say that they are probably false positive however you should rather ask this on the interest mailing list to get a more definitive answer.
  • Qt - A few general questions

    5
    0 Votes
    5 Posts
    2k Views
    SGaistS
    Then just beware of the new driver from the the latest OS X version. AFAIR the unix version doesn't allow to work with either mode like on Windows
  • OpenGL. Crash an application

    2
    0 Votes
    2 Posts
    577 Views
    SGaistS
    Hi, The Scene in your repository code doesn't contain what you posted. Did you check what happens precisely with a debugger ?
  • Do I need a book?

    3
    0 Votes
    3 Posts
    757 Views
    Chris KawaC
    If you're interested in QML this is a good basics material: "QML Book":http://qmlbook.org/
  • Sockets not talking on new fedora 21 installation

    7
    0 Votes
    7 Posts
    2k Views
    O
    Which is to say the compile with QT 5.3.2 did not work with the new installation, and, I'll try again later.
  • [SOLVED] How to use textures in Qt OpenGL?

    8
    0 Votes
    8 Posts
    6k Views
    8Observer88
    https://github.com/8Observer8/DrawingInsideOfTriangleClass http://i9.pixs.ru/storage/3/5/8/TexturedTr_9091779_15268358.png
  • Run time app settings recommendations

    3
    0 Votes
    3 Posts
    666 Views
    S
    Outstanding... I'm only to about Q<m> so I guess I haven't gotten that far yet. Thanks for the reply.
  • Is it possible to hide the widget bounding boxes in Qt Designer?

    1
    0 Votes
    1 Posts
    546 Views
    No one has replied
  • Led controlling through hyperterminal or serial port

    5
    0 Votes
    5 Posts
    2k Views
    S
    You can do something like this because some of the serial port signals are voltage driven. Using QSerialPort would allow you to turn those signals on/off. You could hook your LED to the TX line and send characters but the pulse rate probably won't give you much "on" time. Most serial port signals are at a higher voltage (even as high as 12v) and could provide more current to your LED than you should give it. So do the calc and put in a series resistor to protect your LED and your serial port.
  • QString issue

    9
    0 Votes
    9 Posts
    2k Views
    S
    Thanks all. I still have a lot to learn. It is great to have so many people here that are willing to set others straight on better ways to do things. I do see that from my early C++ days things have definitely moved from straight pointers. So more reading, more work and hopefully I'll save myself hours of debugging and time! All great info thanks!
  • 0 Votes
    3 Posts
    932 Views
    R
    I subclass QProgressBar, reimplement text(), but still cannot put it in the middle of the progress bar ,any idea ?
  • [Solved] QApp.exec&#40;&#41; runs class slot for every Button.

    3
    0 Votes
    3 Posts
    888 Views
    M
    Solved :) I'll mark in a minute. The problem was my misunderstanding of animateClick function (I know this is very stupid :)) Thanks for pointing out memory leaks. I'll change it soon. About Board::show(): it was supposted to be my own function not connected with Qt. After your suggestion I will just change the name.
  • QString character access problem

    5
    0 Votes
    5 Posts
    2k Views
    F
    Thanks a lot for your quick replies! @SGaist I tried to access the individual character using QString::at(). Both at(0) and at(1) returned something that was printed as square in a QLineEdit. When I pasted these characters into the text editor of this forum, a code was shown in the square. After removing the space between these two characters, they were fused to the single one described the link in my first post. @Chris Kawa QString::size() returned 2. I encountered this while parsing the kanjidic2.xml file, which contains information on letters of the Japanese language. The QString causing this problem was initialized using QXmlStreamReader::readElementText(). I assumed the string size to be 1, as the respective xml field contains only a single literal. Your second post helped me a lot, thank you. I thought that a single QChar was able to represent any unicode character, but the first line of its documentation already restricts it to UTF-16. I think that the documentation of QString::size() and QString::at() should point to this issue somehow. If I would have assumed my QString's size to be always one (I was extracting single literals after all) and hadn't verified this, it would have caused an extremely well hidden bug in my program.
  • Change QML object properties from C++.

    3
    0 Votes
    3 Posts
    882 Views
    H
    Thank you for the answer, very much appreciated. Someone helped me earlier on another website though. Good luck.
  • The question about the size of QPushButton,maybe about QWidget..

    2
    0 Votes
    2 Posts
    811 Views
    SGaistS
    Hi, It's been a long time but IIRC you can subclass QPushButton and reimplement "heightForWidth":http://doc.qt.io/qt-5/qwidget.html#heightForWidth Hope it helps
  • (Beginner) Passing Treeview into function

    5
    0 Votes
    5 Posts
    1k Views
    X
    SGaist, thanks. just got an error when calling the function. not declaring the function. Yes got c++ books but they a bit dry so I started to do some fun stuff and went faster then the book ;)
  • New to GUI

    11
    0 Votes
    11 Posts
    2k Views
    CoreyWhiteC
    Thanks for the reply. Maybe we could try to help each other. My e-mail address it adventmagic@gmail.com , if you want to write me. I think this is actually pretty straighforward, when you compare it to other IDE's like Microsoft Visual C++. I'm actually just happy to have found this stuff. I've never buiult a GUI before.
  • QDockWidget Resize Behavior

    2
    0 Votes
    2 Posts
    699 Views
    Q
    After searching for the answer on this forum and other resources it seems there's no practical solution for this other than hacking into the Qt source code... Not to be mean or anything but I've looked at other alternatives recently and it seems that one competitor offers more in terms of widgets. The feature I want for Dock Widget is already implemented in some other tool-kit. In addition to the MS Office like Ribbon bar control which is not available for free in Qt. :)
  • Pass values between screens . help-me

    2
    0 Votes
    2 Posts
    759 Views
    SGaistS
    Hi, You can use "QInputDialog::getInt":http://doc.qt.io/qt-5/qinputdialog.html#getInt to retrieve a number from the user and then create a little QDialog with a QLabel where you set the text to the value you got from the QInputDialog.
  • QOpenGLWidget or QWindow/QOpenGLFunctions

    2
    0 Votes
    2 Posts
    941 Views
    SGaistS
    Hi, I'd say yes. It's possible with QGLWidget so I don't see any reason it wouldn't with QOpenGLWidget