Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • QRadialGradient is pixelated

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Windows Code -> Linux

    9
    0 Votes
    9 Posts
    4k Views
    M
    Are you, by chance, sharing the .pro.user file from your original build environment? If so, you shouldn't be.
  • QGLWidget::renderText => incomplete text

    7
    0 Votes
    7 Posts
    4k Views
    S
    is it working now?
  • Phonon video - createpath hanging app

    2
    0 Votes
    2 Posts
    1k Views
    J
    Ok, I found the issue - the user had corelDVD installed. Disabling the codec on the users machine solved this issue.
  • Strange QDataStream & QByteArrray

    14
    0 Votes
    14 Posts
    5k Views
    T
    No, QDataStream is meant to exchange data between different machines in a save way, so this meta-information is needed. You could use QBuffer instead though, that should do what you want. You want to make sure to set the Content-Length to the actual number of bytes sent, not the number of letters in your string. With unicode those can differ (though you should be save when using ASCII). Also make sure to store a string representation of the number there, not the plain int value (which QDataStream and QBuffer both do).
  • Unexpected CSS behavior

    2
    0 Votes
    2 Posts
    1k Views
    E
    Sorry it looks so sloppy - I clicked Preview, and everything looked great. Obviously the actual post is different.
  • 0 Votes
    1 Posts
    835 Views
    No one has replied
  • [SOLVED]not found slots but the slots thera are!!

    6
    0 Votes
    6 Posts
    6k Views
    V
    Tnx all, i have put Q_Object macro befor send this post but I not have try to run qmake... now it run!!! Tnx All!!! :)
  • Convert QUrl to QString

    4
    0 Votes
    4 Posts
    13k Views
    M
    You could shorten that to @ QString MainWindow::convert(QUrl input) { return input.toEncoded(); } @ ...or just use toEncoded() instead of creating a convert() method.
  • Qt Phonon with constantly updated QBuffer

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    3 Posts
    3k Views
    P
    Thanks for the reply, was of great help. Qt n00b
  • Building qt static on mac

    8
    0 Votes
    8 Posts
    3k Views
    G
    No, you cannot use static Qt libs together with shared webkit libs.
  • [solved] Drag and drop a selection of cells in QTableWidget

    4
    0 Votes
    4 Posts
    6k Views
    R
    After taking a long break, I went back to check this code and finally found a solution. @ void dragEnterEvent(QDragEnterEvent * evt) { QByteArray oldbyteData = evt->encodedData( "application/x-qabstractitemmodeldatalist" ); QDataStream stream( &oldbyteData, QIODevice::ReadOnly ); kfSelection.clear(); while( !stream.atEnd() ) { IndexKf kf; QMap<int, QVariant> v; stream >> kf.layer >> kf.frame >> v; kfSelection.push_back( kf ); } if( kfSelection.size() == 0 ) return; dragStartPosition = indexAt( evt->pos() ); QTableWidget::dragEnterEvent( evt ); } void dragMoveEvent(QDragMoveEvent * evt) { QTableWidget::dragMoveEvent( evt ); } void dropEvent(QDropEvent *evt) { QModelIndex newIdx = indexAt( evt->pos() ); int newframe, oldframe, layer; for( std::vector<IndexKf>::iterator it = kfSelection.begin(); it != kfSelection.end(); ++it ) { (*it).item = takeItem( (*it).layer, (*it).frame ); } for( std::vector<IndexKf>::iterator it = kfSelection.begin(); it != kfSelection.end(); ++it ) { IndexKf kf = *it; layer = kf.layer; oldframe = kf.frame; newframe = newIdx.column() - dragStartPosition.column() + oldframe; setItem( layer, newframe, kf.item ); } evt->setDropAction( Qt::IgnoreAction ); } @
  • Cdrom and qt

    10
    0 Votes
    10 Posts
    5k Views
    G
    On the Mac, mounted CD-ROMs are listed under /Volumes. To check whether your special disk is mounted, just iterate through the entries in /Volumes (using QDir::entryList() or QDir::entryInfoList()) and check if it is the one you search for.
  • How to get all the tabs on left or right of the selected tabs using CSS?

    13
    0 Votes
    13 Posts
    6k Views
    K
    Hmm, you may be right.
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • New 3rd party forum

    8
    0 Votes
    8 Posts
    4k Views
    A
    !
  • Erroneous this-Pointer in QFileDialog::getOpenFileName(this,...)

    9
    0 Votes
    9 Posts
    4k Views
    G
    Do you happen to mix debug and release DLLs of Qt? If so, this cries for disaster... (different memory management modules and the like). It could also be the case if your external lib is built with a different Visual Studio version than your code.
  • Floating child window automatically moves with parent

    2
    0 Votes
    2 Posts
    3k Views
    G
    That's really strange. In my real world applications I never had this behavior with 4.7.3 (using a manual build against Carbon, maybe it is a Cocoa only problem). I would regard the 4.7.3 behavior a bug and 4.8.0 the correct version.
  • [solved] Loading a translation file causes my app to crash...

    12
    0 Votes
    12 Posts
    5k Views
    H
    Yeah, you're probably right. Thanks again ;)