Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.4k Posts
  • Reading file with an unknown charset

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    J
    Thank you all for your answers. jcga
  • Qt Static Build Is Very Big

    Unsolved
    31
    0 Votes
    31 Posts
    12k Views
    E
    @Taz742 That's offtopic but you need to link c++ redistributable statically also to have dependancy free application when compiling with MSVC. https://stackoverflow.com/questions/37398/how-do-i-make-a-fully-statically-linked-exe-with-visual-studio-express-2005
  • [solved][tcp][debian] QTcpSocket read buffer size

    Solved
    9
    0 Votes
    9 Posts
    8k Views
    VRoninV
    Partially related. If you use QDataStream for all your read operations and Qt 5.7+ you can use transactions to avoid you doing the manual check of bytesAvailable()
  • QPainter - must it be deleted after draw ?

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    raven-worxR
    @ranshalit being() -> before you start painting end() -> when you're done painting
  • Anyone has experience of integrating Oculus PC SDK?

    Unsolved
    3
    0 Votes
    3 Posts
    767 Views
    K
    thanks for the direction to mailing list, didn't know about it, will ask there.
  • QDockWidget doesn't resize after add widget

    Solved qdockwidget resize
    7
    0 Votes
    7 Posts
    4k Views
    mrjjM
    @Gianluca86 You can make main window bigger and move the splitter. then it should be bigger.
  • QProcess with Qt5.9 and MVSC2017

    Unsolved
    10
    0 Votes
    10 Posts
    5k Views
    SGaistS
    Because you are using a Qt version built for UWP. If you want to target standard Windows, you have to use the classic Qt for MSVC. Again, that's nothing Qt specific, the two platforms are different so they have different requirements and you can't just switch compilers.
  • What's the "Qt Way" for handling cleanup of parentless windows?

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    SGaistS
    @Asperamanca, no it's not.
  • 0 Votes
    4 Posts
    1k Views
    SGaistS
    Like I wrote before, it depends on the backend. What you can do ? Check which backend you are using. Once identified, whether the feature you need can be implemented there and if so, implement the missing parts and contribute them back to Qt.
  • How to read and write files on MTP(Media Transfer Protocol) devices?

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    SGaistS
    Hi and welcome to devnet, How is it related to Qt ?
  • PyQt5: QMYSQL driver not loaded

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    SGaistS
    Hi, It's not the problem of PyQt5. The Qt version you are using only provides the SQLite plugin it seems. You should check with homebrew whether they provide other Qt SQL plugins.
  • QGraphicsItem MousePressEvent with tablet pen

    Unsolved
    1
    0 Votes
    1 Posts
    297 Views
    No one has replied
  • Is v4 private?

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    SGaistS
    IIRC there was a thread about that in the interest mailing list.
  • QPolygon does not detect QPoint on edge ?

    Unsolved
    1
    0 Votes
    1 Posts
    427 Views
    No one has replied
  • Qt in codelit

    Unsolved
    1
    0 Votes
    1 Posts
    328 Views
    No one has replied
  • how to replace loop.exec() ? (not by a lambda)

    Unsolved
    13
    0 Votes
    13 Posts
    4k Views
    S
    I think I will try with another version of Qt.now I was using Qt5.6.2. I will try with Qt5.9.0
  • Designer or pure C++ code

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    Pradeep KumarP
    @VRonin said in Designer or pure C++ code: so most have pitched in. Thanks,
  • Passing QImage data from a text file or data stream

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    raven-worxR
    @jamie the most reusable way would probably be to create a custom imageformat plugin by implementing QImageIOPlugin interface (in a custom Qt plugin). Take this a reference for example. In the plugin you still need to create a QImage at some point (in QImageIOHandler::read(), to be specific). But i wouldn't use QImage::setPixel() for that but write the (qRgb-)data directly into memory by using QImage::bits() then.
  • Problem with Scollbar in QComboBox

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    F
    Ah ok. Much thanks. Slowly i understand how its all working.
  • QPainter::setClipRect(...) is not working with QSvgGenerator

    Unsolved
    8
    0 Votes
    8 Posts
    3k Views
    S
    Hi, In my case, I'm simply drawing a QPainterPath, which is easy to clip with a specified QRect (border). But I have a problem with this approach: I'm using QPainterPath::intersected(const QPainterPath &p) const method which returns clipped path, which is a single connected unit. I want to have multiple disconnected units: [image: 766174c8-139a-49e6-8cf2-374297b58a01.png] How can I get such multiple disconnected units? Thanks in advance.