Skip to content

Japanese

A forum for those speaking Japanese
95 Topics 303 Posts
  • QFileDialogの自動化について

    Unsolved qtest qfiledialog selectfile findchild gui automation
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • qwindows.dllを隠しファイルにするとエラーで実行できません

    Unsolved
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QtCreatorが起動しない

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • WindowsのQt5.3にQt3Dライブラリをインストールする方法

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QMLを解放する方法

    7
    0 Votes
    7 Posts
    8k Views
    S
    かなり時間が経過してしまいました。 Qt側にバグがあると言えるようなスキルは無いので、自分なりに色々と試してみましたが改善しませんでした。 ちょっと長いですが、コードを添付しますので、ご助言をお願いします。 (main.cpp) QtQuick2ApplicationViewer viewer; QQmlEngine* qengine = viewer.engine(); waitthread waitproc; waitproc.setqengine(qengine); waitproc.start(); (waitthread.h) #ifndef WAITTHREAD_H #define WAITTHREAD_H #include <QThread> #include <QMutex> #include <QQmlEngine> class waitthread : public QThread { Q_OBJECT public: explicit waitthread(QObject *parent = 0); ~waitthread(); void stop(); void setqengine(QQmlEngine *qmlenginepointer); public slots: protected: void run(); private: QString state; volatile int running; QQmlEngine *qmlenginep; }; #endif // WAITTHREAD_H (waitthread.cpp) #include <QApplication> #include <QDebug> #include "waitthread.h" waitthread::waitthread(QObject *parent) : QThread(parent) { state = "Thread Stop"; running = 0; qmlenginep = NULL; } waitthread::~waitthread() { } void waitthread::run() { running = 1; bool onoff = false; while(running == 1){ state = "Thread Running"; msleep(10000); // qmlenginep->trimComponentCache(); // qmlenginep->collectGarbage(); // QApplication::processEvents(QEventLoop::AllEvents); // qDebug() << "Trim Component Cache !!"; if(onoff){ qmlenginep->trimComponentCache(); qDebug() << "Trim Component Cache !!"; } else{ qmlenginep->collectGarbage(); qDebug() << "collectGarbage !!"; } QApplication::processEvents(QEventLoop::AllEvents); onoff = !onoff; } state = "Thread Stop"; } void waitthread::setqengine(QQmlEngine *qmlenginepointer) { qmlenginep = qmlenginepointer; } 以上のコードで10秒置きにcollectGarbageとtrimComponentCacheを実行していますが、最初のcollectGarbageでSegmentation faultが発生してプログラムが突然終了します。 よろしくお願いします。
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • 日本語の縦書きについて

    3
    0 Votes
    3 Posts
    4k Views
    M
    ありがとうございます。 Qtではサポートしていないのですね・・・。 FireAlpacaの方に質問してみます。
  • カメラ映像を送る送りたい

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • カメラで撮影した映像を送信するプログラム

    カメラ
    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    1 Posts
    4k Views
    No one has replied
  • Qxtライブラリでundefinitionエラー(ビルドに失敗?)

    3
    0 Votes
    3 Posts
    4k Views
    R
    ありがとうございます。 実際にproを書き換えたところ、ビルドには成功しました。 ですが、同じように newの時点で QObject: Cannot create children for a parent that is in a different thread. (Parent is MainWindow(0x28fe1c), parent's thread is QThread(0x1231b1a0), current thread is QThread(0x1231e310) エラーが出ました。 完全な解決には至りませんでしたが、ご回答ありがとうございます。 引き続き上記エラーの解決法を募集したいです。
  • 0 Votes
    18 Posts
    12k Views
    C
    Qtではplaybin2で計算した後にvideosinkを置き換えています。 正しく置換えられず?fakesink が繋がれているようなのですが、 置換え処理は、QGstreamerPlayerSession::setVideoRenderer でしょうか? サンプルのvideowidget起動時の出力です。再生後もfakesinkのままです。 ~ # /usr/local/Qt-5.3.2/examples/multimediawidgets/videowidget/videowidget QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed void QGstreamerPlayerSession::setVideoRenderer(QObject*) (videowidget:985): GStreamer-CRITICAL **: gst_object_ref_sink: assertion 'GST_IS_OBJECT (object)' failed Set video output: QGstreamerVideoWidgetControl(0xd2668) Current sink: fakesink0 0xba568 pending: 0x0 new sink: fakesink0 0xba568 Video sink has not changed, skip video output reconfiguration This plugin does not support setParent! This plugin does not support setParent!  : Qt sink側で対応している形式はこのテーブルでしょうか? static const YuvFormat qt_yuvColorLookup[] = { { QVideoFrame::Format_YUV420P, GST_MAKE_FOURCC('I','4','2','0'), 8 }, { QVideoFrame::Format_YV12, GST_MAKE_FOURCC('Y','V','1','2'), 8 }, { QVideoFrame::Format_UYVY, GST_MAKE_FOURCC('U','Y','V','Y'), 16 }, { QVideoFrame::Format_YUYV, GST_MAKE_FOURCC('Y','U','Y','2'), 16 }, { QVideoFrame::Format_NV12, GST_MAKE_FOURCC('N','V','1','2'), 8 }, { QVideoFrame::Format_NV21, GST_MAKE_FOURCC('N','V','2','1'), 8 }, { QVideoFrame::Format_AYUV444, GST_MAKE_FOURCC('A','Y','U','V'), 32 } }; videowidget を起動/再生させても、get_caps()は呼ばれていないようなのですが、 何か呼び出すコマンドのようなものがありますか? 以上、よろしくお願いします。
  • [SOLVED] Qt のバージョン確認について

    6
    0 Votes
    6 Posts
    24k Views
    C
    ありがとうございます。
  • [SOLVED] Qt5.2.1 ビルドの順番について

    10
    0 Votes
    10 Posts
    8k Views
    C
    Gstreamerが正しくインストールされていませんでした。 gst-ffmpeg はインストールしていないので、photography はno になっています。 Checking for openal... no Checking for alsa... yes Checking for pulseaudio... yes Checking for gstreamer... yes Checking for gstreamer_photography... no Checking for gstreamer_encodingprofiles... yes Checking for gstreamer_appsrc... yes Checking for linux_v4l... yes Checking for resourcepolicy... no Checking for gpu_vivante... no 以上、ありがとうございました。
  • 0 Votes
    3 Posts
    4k Views
    C
    Gstreamer-1.0 がインストールされていました。 Qt は、1.0 に対応していないという事なので、Gstreamer-0.10 で試して見ます。 以上、ありがとうございました。
  • Qapplication.h:134:36: error: expected identifier before 'void'

    5
    0 Votes
    5 Posts
    4k Views
    C
    間違えて投稿しました。すみません。
  • [SOLVED] pulseaudioのバージョンについて

    2
    0 Votes
    2 Posts
    3k Views
    C
    libpulsecommon-5.0.so のインストール先の問題でした。 libpulsecommon-5.0.so を /usr/lib/pulseaudio にインストールしていました。 Qt は、/usr/lib にあると思っているようです。 下記のようにパスを追加するか、/usr/lib にインストールするかで対応します。 LIBS+=/usr/lib/pulseaudio -lpulsecommon-5.0 以上、ありがとうございました。
  • QtCreatorにてAVD Managerが起動しない

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied